cmake_minimum_required(VERSION 2.6)

if(NOT CMAKE_BUILD_TYPE)
  set(CMAKE_BUILD_TYPE Release
       CACHE
       STRING
       "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel."
       FORCE)
endif(NOT CMAKE_BUILD_TYPE)

if(CMAKE_BUILD_TYPE STREQUAL Debug)
  add_definitions(-Wall)
endif()
find_package(Qt4 REQUIRED)
include(${QT_USE_FILE})
include_directories(
  ${QT_QTCORE_INCLUDE_DIR}
  ${QT_QTGUI_INCLUDE_DIR}
  ${QT_QTSVG_INCLUDE_DIR}
  )
add_subdirectory(src)
add_subdirectory(src/plugins)
